package StudyCode.summary.mydatetime;

import java.time.Instant;
import java.util.Date;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class InstantToDate {
	public static void main(String[] args) {
		Instant instant = Instant.now();
		System.out.println("Instant 对象: " + instant);

		Date date = Date.from(instant);
		System.out.println("Instant 对象转为 Date 对象: " + date);
	}
}
